package com.siam.package_common.constant;

/**
 * 用于保存Redis 前缀等常量
 *
 * @author Xujie
 * @since 2025/3/30 13:41
 **/
public class RedisConstant {

    /** 用于记录骑手位置 **/
    public static final String RIDER_DIST_KEY = "distance:rider:";

    /** 用于记录商家位置 **/
//    public static final String MERCHANT_DIST_KEY = "distance:merchant:";

    /** 配送订单出发地位置 **/
    public static final String ORDER_START_ADDRESS_KEY = "order:startAddress";

    /** 骑手转单限制次数 **/
    public static final String TRANSFER_ORDER_LIMIT_KEY = "rider:transfer:";

    // 骑手拒绝接单列表
    public static final String REFUSE_ORDER_KEY = "deliveryOrder:refuse:";

    /* Redis 锁前缀 */

    /** 抢单分布式锁前缀 **/
    public static final String GRAB_ORDER_LOCK = "grab:order:";
}
